<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./clean_style.css">
  <style>
    div{
      width: 1200px;
      margin: 0 auto;
    }
    ul{
      height: 4000px;
      background-color: aqua;
    }
    ul li{
      height: 80px;
    }
  </style>
</head>
<body>
  <div>
    <ul>
      <li>1</li>
      <li>2</li>
      <li>3</li>
      <li>4</li>
      <li>5</li>
      <li>6</li>
      <li>7</li>
      <li>8</li>
      <li>9</li>
      <li>10</li>
      <li>11</li>
      <li>12</li>
      <li>13</li>
      <div id="on" style="visibility:hidden;">vgafsdguiosfdshvjgachbjn</div>
      <li>14</li>
      <li>15</li>
      <li>16</li>
      <li>17</li>
      <li>18</li>
      <li>19</li>
      <li>20</li>
    </ul>
  </div>
  <script>
    const on = document.querySelector("#on")
    window.addEventListener("scroll",()=>{
      const n = document.documentElement.scrollTop
      on.style.visibility = n > 750 ? 'hidden' : 'visible'
    })
  </script>
</body>
</html>